package liuyuyang.feign;

import liuyuyang.domain.Course;
import liuyuyang.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "course-service", path = "/course")
public interface CourseFeign {
    @GetMapping("/{id}")
    public Result<List<Course>> get(@PathVariable Integer id);
}
